home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 …ember: Reference Library / Apple Developer Reference Library (December 1999) (Disk 1).iso / pc / technical documentation / develop / develop issue 24 / develop issue 24 code / scriptable database 1.0a15.sea / Scriptable Database 1.0a15 / Scripting / ScriptErrors.cp < prev    next >
MacBinary  |  1996-02-19  |  1.6 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert MS-DOS Code Page Info (other/dosCodePage) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Mon Feb 19 22:37:34 1996, modified Mon Feb 19 22:37:34 1996, creator 'CWIE', type ASCII, 1016 bytes "ScriptErrors.cp" , at 0x478 410 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0f 53 63 72 69 70 74 | 45 72 72 6f 72 73 2e 63 |..Script|Errors.c|
|00000010| 70 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |p.......|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 03 f8 00 | 00 01 9a ad 4e f2 7e ad |........|....N.~.|
|00000060| 4e f2 7e 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |N.~.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 21 ae 00 00 |........|....!...|
|00000080| 0d 23 69 6e 63 6c 75 64 | 65 20 22 53 63 72 69 70 |.#includ|e "Scrip|
|00000090| 74 45 72 72 6f 72 73 2e | 68 22 0d 23 69 6e 63 6c |tErrors.|h".#incl|
|000000a0| 75 64 65 20 22 4d 6f 72 | 65 41 45 4d 2e 68 22 0d |ude "Mor|eAEM.h".|
|000000b0| 0d 2f 2f 0d 2f 2f 20 46 | 6f 72 20 6b 4f 53 41 45 |.//.// F|or kOSAE|
|000000c0| 72 72 6f 72 4f 66 66 65 | 6e 64 69 6e 67 4f 62 6a |rrorOffe|ndingObj|
|000000d0| 65 63 74 20 61 6e 64 20 | 6e 6f 74 68 69 6e 67 20 |ect and |nothing |
|000000e0| 65 6c 73 65 0d 2f 2f 0d | 23 69 6e 63 6c 75 64 65 |else.//.|#include|
|000000f0| 20 22 4f 53 41 2e 68 22 | 0d 0d 2f 2f 2d 2d 2d 2d | "OSA.h"|..//----|
|00000100| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000110| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000120| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000130| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000140| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000150| 2d 2d 2d 2d 0d 2f 2f 20 | 50 72 6f 63 65 73 73 45 |----.// |ProcessE|
|00000160| 72 72 6f 72 0d 2f 2f 2d | 2d 2d 2d 2d 2d 2d 2d 2d |rror.//-|--------|
|00000170| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000180| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000190| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000001a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000001b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0d |--------|-------.|
|000001c0| 76 6f 69 64 20 50 72 6f | 63 65 73 73 45 72 72 6f |void Pro|cessErro|
|000001d0| 72 28 4f 53 45 72 72 20 | 65 72 72 2c 20 54 44 65 |r(OSErr |err, TDe|
|000001e0| 73 63 72 69 70 74 6f 72 | 26 20 6f 66 66 65 6e 64 |scriptor|& offend|
|000001f0| 69 6e 67 4f 62 6a 65 63 | 74 2c 20 54 41 45 76 65 |ingObjec|t, TAEve|
|00000200| 6e 74 26 20 72 65 70 6c | 79 29 0d 09 7b 0d 09 69 |nt& repl|y)..{..i|
|00000210| 66 28 28 72 65 70 6c 79 | 2e 49 73 4e 75 6c 6c 44 |f((reply|.IsNullD|
|00000220| 65 73 63 72 69 70 74 6f | 72 28 29 20 3d 3d 20 66 |escripto|r() == f|
|00000230| 61 6c 73 65 29 20 26 26 | 20 28 65 72 72 20 21 3d |alse) &&| (err !=|
|00000240| 20 6e 6f 45 72 72 29 29 | 0d 09 09 7b 0d 09 09 2f | noErr))|...{.../|
|00000250| 2f 0d 09 09 2f 2f 20 50 | 75 74 20 74 68 65 20 65 |/...// P|ut the e|
|00000260| 72 72 6f 72 20 6e 75 6d | 62 65 72 20 69 6e 74 6f |rror num|ber into|
|00000270| 20 74 68 65 20 72 65 70 | 6c 79 0d 09 09 2f 2f 0d | the rep|ly...//.|
|00000280| 09 09 72 65 70 6c 79 2e | 50 75 74 53 49 6e 74 33 |..reply.|PutSInt3|
|00000290| 32 50 61 72 61 6d 65 74 | 65 72 28 6b 65 79 45 72 |2Paramet|er(keyEr|
|000002a0| 72 6f 72 4e 75 6d 62 65 | 72 2c 20 65 72 72 29 3b |rorNumbe|r, err);|
|000002b0| 0d 09 09 0d 09 09 2f 2f | 0d 09 09 2f 2f 20 41 74 |......//|...// At|
|000002c0| 20 74 68 69 73 20 70 6f | 69 6e 74 20 74 68 65 20 | this po|int the |
|000002d0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 73 68 6f 75 |applicat|ion shou|
|000002e0| 6c 64 20 6c 6f 6f 6b 20 | 75 70 20 61 6e 20 61 70 |ld look |up an ap|
|000002f0| 70 72 6f 70 72 69 61 74 | 65 0d 09 09 2f 2f 20 65 |propriat|e...// e|
|00000300| 72 72 6f 72 20 73 74 72 | 69 6e 67 2c 20 69 66 20 |rror str|ing, if |
|00000310| 69 74 20 63 61 6e 20 67 | 65 6e 65 72 61 74 65 20 |it can g|enerate |
|00000320| 6f 6e 65 2c 20 61 6e 64 | 20 70 6c 61 63 65 20 69 |one, and| place i|
|00000330| 74 20 69 6e 74 6f 0d 09 | 09 2f 2f 20 74 68 65 20 |t into..|.// the |
|00000340| 70 61 72 61 6d 65 74 65 | 72 20 6b 65 79 45 72 72 |paramete|r keyErr|
|00000350| 6f 72 53 74 72 69 6e 67 | 2e 0d 09 09 2f 2f 0d 09 |orString|....//..|
|00000360| 09 0d 09 09 2f 2f 0d 09 | 09 2f 2f 20 50 75 74 20 |....//..|.// Put |
|00000370| 61 20 72 65 66 65 72 65 | 6e 63 65 20 74 6f 20 74 |a refere|nce to t|
|00000380| 68 65 20 6f 66 66 65 6e | 64 69 6e 67 20 6f 62 6a |he offen|ding obj|
|00000390| 65 63 74 20 69 6e 74 6f | 20 74 68 65 0d 09 09 2f |ect into| the.../|
|000003a0| 2f 20 72 65 70 6c 79 20 | 61 73 20 77 65 6c 6c 20 |/ reply |as well |
|000003b0| 28 69 66 20 6f 6e 65 20 | 69 73 20 61 76 61 69 6c |(if one |is avail|
|000003c0| 61 62 6c 65 29 0d 09 09 | 2f 2f 0d 09 09 69 66 28 |able)...|//...if(|
|000003d0| 6f 66 66 65 6e 64 69 6e | 67 4f 62 6a 65 63 74 2e |offendin|gObject.|
|000003e0| 49 73 4e 75 6c 6c 44 65 | 73 63 72 69 70 74 6f 72 |IsNullDe|scriptor|
|000003f0| 28 29 20 3d 3d 20 66 61 | 6c 73 65 29 0d 09 09 09 |() == fa|lse)....|
|00000400| 7b 0d 09 09 09 72 65 70 | 6c 79 2e 50 75 74 44 65 |{....rep|ly.PutDe|
|00000410| 73 63 72 69 70 74 6f 72 | 50 61 72 61 6d 65 74 65 |scriptor|Paramete|
|00000420| 72 28 6b 4f 53 41 45 72 | 72 6f 72 4f 66 66 65 6e |r(kOSAEr|rorOffen|
|00000430| 64 69 6e 67 4f 62 6a 65 | 63 74 2c 20 6f 66 66 65 |dingObje|ct, offe|
|00000440| 6e 64 69 6e 67 4f 62 6a | 65 63 74 29 3b 0d 09 09 |ndingObj|ect);...|
|00000450| 09 6f 66 66 65 6e 64 69 | 6e 67 4f 62 6a 65 63 74 |.offendi|ngObject|
|00000460| 2e 44 69 73 70 6f 73 65 | 28 29 3b 0d 09 09 09 7d |.Dispose|();....}|
|00000470| 0d 09 09 7d 0d 09 7d 0d | 00 00 00 00 00 00 00 00 |...}..}.|........|
|00000480| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00000490| 00 00 00 0f 00 00 00 00 | 0f ff ff ff ff ff ff ff |........|........|
|000004a0| ff ff ff f0 00 00 00 00 | 00 00 02 00 00 00 00 00 |........|........|
|000004b0| 0f 53 63 72 69 70 74 45 | 72 72 6f 72 73 2e 63 70 |.ScriptE|rrors.cp|
|000004c0| 02 00 00 00 54 45 58 54 | 43 57 49 45 01 00 ff ff |....TEXT|CWIE....|
|000004d0| 00 00 54 45 58 54 43 57 | 49 45 01 00 ff ff ff ff |..TEXTCW|IE......|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 ac 44 43 69 00 00 | 03 f8 00 00 01 9a 00 00 |...DCi..|........|
|00000500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 03 | 00 04 00 d6 00 47 02 76 |........|.....G.v|
|000005b0| 02 a6 00 d6 00 47 02 76 | 02 a6 ad 3d 45 66 00 00 |.....G.v|...=Ef..|
|000005c0| 01 7b 00 00 01 82 00 00 | 00 30 01 00 00 00 00 04 |.{......|.0......|
|000005d0| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|000005e0| 00 00 00 46 02 9b 37 60 | 29 de 00 00 00 1c 00 46 |...F..7`|)......F|
|000005f0| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00000600| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00000610| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+